@(form: Form[(String, String)])(implicit flash: Flash)

<html>
  <head>
    <title>Studykun</title>
    <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
    <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/login.css")">
    <script type="text/javascript" src="@routes.Assets.at("javascripts/jquery-1.6.4.js")"></script>
  </head>
  <body>
    <header>
      <a href="@routes.Projects.index" id="logo"><span>Study</span>kun</a>
    </header>
    @helper.form(routes.Application.authenticate) {
      <h1>Sign in</h1>

      @form.globalError.map { error =>
        <p class="error">@error.message</p>
      }

      @flash.get("success").map { message =>
        <p class="success">@message</p>
      }

      <p><input type="email" name="email" placeholder="Email" value="@form("email").value"></p>
      <p><input type="password" name="password" placeholder="Password"></p>
      <p><button type="submit">Login</button></p>
    }
        
    <p class="note">
        Try <em>user@@studykun.com</em> with <em>secret</em> as password.
    </p>
  </body>
</html>
    


